<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../js/vue.js"></script>
    <script>
        Vue.component('my-component', {
            props:['myComponent'],
            template: '<div>{{myComponent}}</div>'
        })
        $(function () {
            new Vue({
                el:"#app",
                data:{
                    msg:"动态绑定props"
                }
            })
        })
    </script>
</head>
<body>
    <div id="app">
        <my-component :my-component="msg"></my-component>
    </div>
</body>
</html>
